<html>

<head>
<script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>
<title>登录页面</title>
</head>

<body>
<p>请登录</p>
<div id="myDiv"><h2>Let AJAX change this text</h2></div>
<button id="b01" type="button">Change Content</button>

</body>
<script type="text/javascript">
$(document).ready(function(){
	  $("#b01").click(function(){
	  htmlobj=$.ajax(
			  {url:"http://localhost:8888/erp/user/login",
			   async:false,
			   type:"POST",
			   contentType: "application/json; charset=utf-8",
			   dataType:"json",
			   data:JSON.stringify({username:'13805121111',
				     password:'96e79218965eb72c92a549dd5a330112'})
			   });
	  $("#myDiv").html(htmlobj.responseText);
	  });
	});
</script>
</html>